package cn.net.lwj.dao;

import cn.net.lwj.entity.Note;
import cn.net.lwj.entity.NoteParams;
import cn.net.lwj.entity.User;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

public interface DemoUserDao {

	//public List<Map<String, Object>> findNotebookByNotebookId(String notebookId);

	public User findUserById(String id);
	public List<Note> findNotes(String userId);
	public List<Note> findNotes1(String userId);
	public List<Note> findNotes2(String userId);
	public List<Note> findNotes3(String userId);
	public List<Map<String, Object>> findNotes4(String userId);

    //多条件查询demo
    public Note findNote(@Param("userId") String userId,@Param("content") String content);
    public Note findNote(NoteParams params);
    //根据多个id查找
    //public List<User> findUserByIds(String... userIds);
    public List<User> findUserByIds(List<String> userIds);
    //新增
    public int addUser(User user);
    //更新
    public int updateUser(User user);
    //删除
    public int deleteUserById(String id);


	/*public int deleteNoteById(String id);
	
	public int deleteNotesById(String... ids);

	public List<Map<String, Object>> findNotesByParam(Map<String, Object> param);
	
	public List<Map<String, Object>> findNotesByKey(
            @Param("title") String title,
            @Param("body") String body,
            @Param("key") String key);*/

}